import { request } from '@/utils'

// 分组列表
export function cycleList(data) {
  return request({
    url: `projectTaskCalendar/selectProjectTaskCalendarList`,
    method: 'post',
    data,
  })
}

// 分组列表-本人
export function selfList(data) {
  return request({
    url: `projectTaskDaily/selectProjectTaskDailyForSelf`,
    method: 'post',
    data,
  })
}

// 分组列表-本组
export function deptList(data) {
  return request({
    url: `projectTaskDaily/selectProjectTaskDailyForDept`,
    method: 'post',
    data,
  })
}

// 分组列表-全部
export function allList(data) {
  return request({
    url: `projectTaskDaily/selectProjectTaskDailyForAll`,
    method: 'post',
    data,
  })
}

export function add(data) {
  return request({
    url: `projectTaskDaily/add`,
    method: 'post',
    data,
  })
}

export function edit(data) {
  return request({
    url: `projectTaskDaily/update`,
    method: 'put',
    data,
  })
}

export function del(params) {
  return request({
    url: `projectTaskDaily/delete`,
    method: 'delete',
    params,
  })
}
